Skip to content

Comments

[build] pass $(RestoreConfigFile) to Workloads.csproj#13180

Closed
jonathanpeppers wants to merge 1 commit intodotnet:mainfrom
jonathanpeppers:RestoreConfigFile
Closed

[build] pass $(RestoreConfigFile) to Workloads.csproj#13180
jonathanpeppers wants to merge 1 commit intodotnet:mainfrom
jonathanpeppers:RestoreConfigFile

Conversation

@jonathanpeppers
Copy link
Member

On dotnet/maui/main, if I do:

dotnet cake

It fails spectacularly:

C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest-7.0.100 with version (= 7.0.0-rtm.22511.4)
    - Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
    - Found 0 version(s) in C:\Program Files\dotnet\library-packs
    - Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
    - Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
    - Found 0 version(s) in dotnet-eng
    - Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
        C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Mono.ToolChain.net7.Manifest-7.0.100 with version (= 7.0.0-rtm.22511.4)
    - Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
    - Found 0 version(s) in C:\Program Files\dotnet\library-packs
    - Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
    - Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
    - Found 0 version(s) in dotnet-eng
    - Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
        C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Emscripten.net6.Manifest-7.0.100 with version (= 7.0.0-rtm.22504.3)
    - Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
    - Found 0 version(s) in C:\Program Files\dotnet\library-packs
    - Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
    - Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
    - Found 0 version(s) in dotnet-eng
    - Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
        C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Emscripten.net7.Manifest-7.0.100 with version (= 7.0.0-rtm.22504.3)
    - Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
    - Found 0 version(s) in C:\Program Files\dotnet\library-packs
    - Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
    - Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
    - Found 0 version(s) in dotnet-eng
    - Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.Android.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.MacCatalyst.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.iOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.tvOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.macOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]

I set $(RestoreConfigFile) to the NuGet.config file to solve this issue.

I'm unsure how things are generally working without this?

Or maybe this is a recent development from 2dcc148?

On dotnet/maui/main, if I do:

    dotnet cake

It fails spectacularly:

    C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest-7.0.100 with version (= 7.0.0-rtm.22511.4)
        - Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
        - Found 0 version(s) in C:\Program Files\dotnet\library-packs
        - Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
        - Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
        - Found 0 version(s) in dotnet-eng
        - Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
            C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Mono.ToolChain.net7.Manifest-7.0.100 with version (= 7.0.0-rtm.22511.4)
        - Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
        - Found 0 version(s) in C:\Program Files\dotnet\library-packs
        - Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
        - Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
        - Found 0 version(s) in dotnet-eng
        - Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
            C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Emscripten.net6.Manifest-7.0.100 with version (= 7.0.0-rtm.22504.3)
        - Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
        - Found 0 version(s) in C:\Program Files\dotnet\library-packs
        - Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
        - Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
        - Found 0 version(s) in dotnet-eng
        - Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
            C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1102: Unable to find package Microsoft.NET.Workload.Emscripten.net7.Manifest-7.0.100 with version (= 7.0.0-rtm.22504.3)
        - Found 5 version(s) in dotnet-public [ Nearest version: 7.0.0 ]
        - Found 0 version(s) in C:\Program Files\dotnet\library-packs
        - Found 0 version(s) in darc-pub-dotnet-emsdk-c3fc739
        - Found 0 version(s) in darc-pub-dotnet-runtime-1e1f688
        - Found 0 version(s) in dotnet-eng
        - Found 0 version(s) in skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
    C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.Android.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
    C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.MacCatalyst.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
    C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.iOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
    C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.tvOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]
    C:\src\maui\src\DotNet\Dependencies\Workloads.csproj error NU1101: Unable to find package Microsoft.NET.Sdk.macOS.Manifest-7.0.100. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, dotnet-eng, dotnet-public, skiasharp [C:\src\maui\src\DotNet\Dependencies\Workloads.csproj]

I set `$(RestoreConfigFile)` to the `NuGet.config` file to solve this
issue.

I'm unsure how things are generally working without this? Or maybe
this is a recent development from 2dcc148?
@MartyIX
Copy link
Contributor

MartyIX commented Feb 8, 2023

Isn't this PR also fixing #12762 by any chance?

@rmarinho
Copy link
Member

rmarinho commented Feb 8, 2023

this is strange, how would CI work if it could install .net.. aall steps install .net first .

Any idea @mattleibow ?

@rmarinho
Copy link
Member

rmarinho commented Feb 8, 2023

But should the Nuget.config on the root be catch by default?

@jonathanpeppers
Copy link
Member Author

Isn't this PR also fixing #12762 by any chance?

@MartyIX no it won't fix it -- I saw this, too. I'm going to check if we can just use the stable/shipped packs in main.

@jonathanpeppers
Copy link
Member Author

But should the Nuget.config on the root be catch by default?

@rmarinho I think it's something about other feeds on my machine?

Broken one (main):

NuGet Config files used:
    C:\src\maui\NuGet.Config
    C:\Users\jopepper\AppData\Roaming\NuGet\NuGet.Config
    C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.FallbackLocation.config
    C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config

Working one (this PR):

NuGet Config files used:
    C:\src\maui\NuGet.config

@mattleibow
Copy link
Member

I see the maui config is in the list, so this seems suspicious. What version of the SDK do you have installed? The only reason why this would stop is something else is horribly wrong - this is just normal .NET rules...

@jonathanpeppers
Copy link
Member Author

I have the VS preview channel, so it is 7.0.200-preview.22628.1.

@rmarinho
Copy link
Member

rmarinho commented Feb 8, 2023

i just tested on my machien and dotnet cake just works..

image

@mattleibow
Copy link
Member

Maybe the 200 SDK is broken then? I recall people having issues in the new 200 world...

@rmarinho
Copy link
Member

rmarinho commented Feb 8, 2023

PS D:\repos\dotnet\maui> dotnet --list-sdks
6.0.405 [C:\Program Files\dotnet\sdk]
7.0.102 [C:\Program Files\dotnet\sdk]
7.0.200-preview.22628.1 [C:\Program Files\dotnet\sdk]

@Eilon Eilon added the area-setup Installation, setup, requirements, maui-check, workloads, platform support label Feb 8, 2023
@jonathanpeppers
Copy link
Member Author

This is not needed if we have: #13201 (I'm really close!)

The only thing I can figure, is I had disabled internal feeds in my machine-wide NuGet.config. They were unchecked in Visual Studio's options dialog. This feels like some bug in NuGet or MSBuild/.NET SDK.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-setup Installation, setup, requirements, maui-check, workloads, platform support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants